<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="model.environment.*,java.util.*" %>
<% PageViewInfo pvi = new PageViewInfo(); 
pvi.setPageTitle("products");
%>
<%@include file="parts/header.jsp" %>
	<div class="content">
			<%
			List<Item> items = Items.getItems();
			
			for (Item i : items) {%>	
			<div style="width:700px;border-top:1px solid black;float:left;" class="container">
				<div style="width:210px;border-right:1px dashed black;float:left;" class="coll">
					<h3 style="text-align:left;vertical-align:middle;height:80px"><a href='<%= request.getContextPath() %>/showItem.jsp?itemID=<%=i.getItemID()%>'><%=i.getItemName()%></a> </h3>
				</div>    
				<div style="width:139px;border-right:1px dashed black;float:left;" class="coll">
					<h3 style="text-align:center;vertical-align:middle;height:80px;"><img src="<%=i.getThumbImageURL()%>" alt= "<%=i.getItemName()%>"></h3>
				</div>
				<div style="width:99px;border-right:1px dashed black;float:left;" class="coll">
					<h3 style="text-align:center;vertical-align:middle;height:80px;"> Price: <%= i.getItemPrice()%></h3>
				</div>
				<div style="width:99px;border-right:1px dashed black;float:left;" class="coll">
					<h3 style="text-align:center;vertical-align:middle;height:80px;">Stock: <%= i.getItemStock()%></h3>
				</div>
				<div style="width:149px;float:left;" class="coll">
					<h3 style="text-align:center;vertical-align:middle;"><a href='addToBasket.do?itemID=<%=i.getItemID()%>'>Add to basket</a></h3>
				</div>
			</div>

			<% } %>
		
 	</div>
<%@include file="parts/footer.jsp" %>